package com.link.base.base.sms.dao.mybatis.mapper;


import com.link.base.sms.model.SmsSend;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * @Author: liulu
 * @Date:15:37 2018/11/5
 */
public interface SmsSendMapper extends BasicMapper<SmsSend> {

    /**
     * 根据短信ID删除客户短信中间表
     * @Author: liulu
     * @Date:14:40 2018/11/5
     * @param  smsId
     */
    public void delBySmsId(Long smsId);

    /**
     * 根据短信id查询有多少客户
     * @Author: liulu
     * @Date:14:40 2018/11/5
     * @param  smsId
     * @return: int
     */
    public int querCountByAccn(Long smsId);

    /**
     * 查询该时间应该发送的短信
     * @Author: liulu
     * @Date:14:42 2018/11/5
     * @return: List SmsSend
     */
    public List<SmsSend> queryByFutureTXT();

    /**
     * 新增短信回复记录
     *
     * @author lujiang
     * @date 2019-04-08
     * @param smsSend
     */
    void smsSendInsertByInterface(SmsSend smsSend) throws Exception;
}
